package com.mgetwd.springbootweb.dao;

import com.mgetwd.springbootweb.entities.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface UserRepository extends JpaRepository<User, Integer> {
    //from 是类名不是表名, 请注意
    @Query(" select bif from User bif where username=?1  and  password=?2")
    User findUserByUsernameOrEmailAndPassword(String username,  String password);
}
